package com.bgs.service;

import com.bgs.mapper.ListMapper;
import com.bgs.pojo.EnterpriseVo;
import com.bgs.pojo.JournalismVo;
import com.bgs.pojo.NoticcollectVo;
import com.bgs.pojo.NoticeVo;
import com.bgs.tool.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ListServiceImpl implements ListService{

    @Autowired
    private ListMapper listMapper;

    @Override
    public R Listfind(Integer userid) {
        List<JournalismVo> list=listMapper.ListFind(userid);
        return R.ok().data("list",list);
    }

    @Override
    public R Liste(Integer eid) {
        List<EnterpriseVo> list=listMapper.Liste(eid);
        return R.ok().data("list",list);
    }

    @Override
    public List<NoticeVo> FindList(Integer eid) {
        return listMapper.FindList(eid);
    }

    @Override
    public R Listfinds(Integer jourId) {
        List<JournalismVo> list=listMapper.ListFinds(jourId);
        return R.ok().data("list",list);
    }

}
